package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 工艺工序对象 mes_tec_pro
 * 
 * @author ruoyi
 * @date 2024-06-01
 */
public class MesTecPro extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 工艺工序id */
    private Integer id;

    /** 工艺编码 */
    @Excel(name = "工艺编码")
    private String tecId;

    /* 旧的工艺编码*/
    private String oldTecId;//注意：：：变量不能使用首字母大写开头，不然后端会拿不到数据

    /** 工序编码 */
    @Excel(name = "工序编码")
    private String processId;


    private List<MesTecPro> mtrs;//工艺 有工艺编码和工艺名称

    // Getter and Setter
    public List<MesTecPro> getMtrs() {
        return mtrs;
    }

    public void setMtrs(List<MesTecPro> mtrs) {
        this.mtrs = mtrs;
    }


    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setTecId(String tecId) 
    {
        this.tecId = tecId;
    }

    public String getTecId() 
    {
        return tecId;
    }


    public String getProId()
    {
        return processId;
    }
    public void setProId(String processId)
    {
        this.processId = processId;
    }

    public void setOldTecIdTecId(String tecId)
    {
        this.oldTecId = oldTecId;
    }

    public String getOldTecId()
    {
        return oldTecId;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tecId", getTecId())
            .append("processId", getProId())
            .append("oldTecId", getOldTecId())
            .toString();
    }
}
